package com.irdstudio.efp.nls.service.common.rules;

import com.irdstudio.basic.framework.core.constant.EsbRetCodeStandard;
import com.irdstudio.basic.framework.core.exception.BizException;
import com.irdstudio.basic.framework.core.util.MessageRuleCheckUtil;

/**
 * 需求编号:2019D08--
 * 问题编号:
 * 开发人员: caoxin
 * 创建日期:2019/12/4
 * 功能描述:
 * 修改日期:2019/12/4
 * 修改描述:
 */
public class CertRule implements CheckRule {
    private String certNo;

    public CertRule(String certNo) {
        this.certNo = certNo;
    }

    @Override
    public void check() throws BizException {
        MessageRuleCheckUtil.validateIdNo18(certNo, EsbRetCodeStandard.KHXXJYBTG.getValue());
    }
}
